package flymoke.generic.method;

public class GenericMethod {
	public <T> void testMethod(T t){
		System.out.println(t.getClass().getName());
	}
	
	public <T> void testMethod(T t1,T t2,T t3){
		System.out.println(t1.getClass().getName());
		System.out.println(t2.getClass().getName());
		System.out.println(t3.getClass().getName());
	}
	
	public <T> void testMethod1(T t1,T t2,int t3){
		System.out.println(t1.getClass().getName());
		System.out.println(t2.getClass().getName());
		System.out.println(t3);
	}
	
	public static void main(String[] args) {
		GenericMethod method = new GenericMethod();
		method.testMethod("a");
		method.testMethod(1);
		method.testMethod(method);
		method.testMethod(1.0);
		method.testMethod('a');
		
		System.out.println("------------------");
		method.testMethod("a", 1, 'd');
		System.out.println("------------------");
		method.testMethod1("a", 'a', 7);
	}
}
